package main

import (
	"fmt"
	"siemens-tcpgo/siemenss7smart"
)

func main() {

	//1.读取json配置的节点信息，然后初始化多个连接器

	//2.通过多个context管理连接器

	//3.
	// conn, err := net.Dial("tcp", "192.168.2.1:102")
	// if err != nil {
	// 	fmt.Printf("connt to 192.168.2.1:102 foaled ,err:%v", err)
	// }
	// conn.Write([]byte("test"))

	err := siemenss7smart.LoadConfig("./config/devices.json")
	if err != nil {
		fmt.Printf("error %v\n", err)
		return
	}

}
